package com.qiku.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qiku.entity.User;
import com.qiku.entity.UserDTO;

public interface UserService extends IService<User> {

    /**
     * 登录功能
     * @param phone
     * @param password
     * @return
     */
    public UserDTO<User> login(String phone, String password);
    public UserDTO<User> checkToken(String token);

    UserDTO<User> loginPhoneSms(String phoneNumber);

    /**
     * 注册
     * @param phoneNumber
     * @param password
     * @param nickName
     * @param headImg
     * @return
     */
    Integer register(String phoneNumber, String password, String nickName, String headImg) ;
}
